package com.example.spirngbootyaml.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 墨苍璃
 * @date 2022年01月12日17时06分
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Component
public class Dog {

    @Value("小明")
    private String name;
    @Value("666")
    private Integer age;

}
